﻿@using Cherry.Agile.UI.Framework
@{
    Layout = null;
}

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <title>@Cherry.Agile.Web.Resource.GetString("Agile_LoginPerson") - @Cherry.Agile.Web.Resource.GetString("Agile_Web")</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />
    <link href="@Url.StaticFile("/assets/css/bootstrap.min.css")" rel="stylesheet" />
    <link href="@Url.StaticFile("/assets/css/font-awesome.min.css")" rel="stylesheet" />
    <!--[if IE 7]>
          <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
     <![endif]-->
    <!-- page specific plugin styles -->
    <!-- fonts -->

    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" />

    <!-- ace styles -->

    <link rel="stylesheet" href="@Url.StaticFile("/assets/css/agile.min.css")" />
    <link rel="stylesheet" href="@Url.StaticFile("/assets/css/agile-rtl.min.css")" />

    ><!--[if lte IE 8]>
      <link rel="stylesheet" href="@Url.StaticFile("/assets/css/agile-ie.min.css")" />
    <![endif]-->

    <!-- inline styles related to this page -->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="@Url.StaticFile("/assets/js/html5shiv.js")"></script>
    <script src="@Url.StaticFile("/assets/js/respond.min.js")"></script>
    <![endif]-->

</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="login-layout">
    <!-- BEGIN LOGO -->
    <div class="main-container">
        <div class="main-content">
            <div class="row">
                <div class="col-sm-10 col-sm-offset-1">
                    <div class="login-container">
                        <div class="center">
                            <h1>
                                <i class="icon-leaf green"></i>
                                <span class="red">Agile</span>
                                <span class="white">Application</span>
                            </h1>
                            <h4 class="blue">2014 &copy; Magic.S.G. Xie</h4>
                        </div>
                        @*<img src="@Url.StaticFile("/content/images/logo-big.png")" alt="" />*@
                        <div class="space-6"></div>
                        <div class="position-relative">
                            <div id="login-box" class="login-box visible widget-box no-border">
                                <div class="widget-body">
                                    <div class="widget-main">
                                        <h4 class="header blue lighter bigger">
                                            <i class="icon-coffee green"></i>
                                            @Cherry.Agile.Web.Resource.GetString("Agile_Please_Input_UserName_PWD")
                                        </h4>

                                        <div class="space-6"></div>
                                        @using (Html.BeginForm("Login", "Auth", FormMethod.Post, new { @id="loginForm" }))
                                        {
                                            <fieldset>
                                                <label class="block clearfix">
                                                    <span class="block input-icon input-icon-right">
                                                        @Html.TextBox("Identity", string.Empty, new { @class = "form-control", placeholder = @Cherry.Agile.Web.Resource.GetString("Agile_AccountName"), data_val_required = @Cherry.Agile.Web.Resource.GetString("Agile_Account_NOT_NULL"), data_val = "true" })
                                                        <i class="icon-user"></i>
                                                    </span>
                                                    <span class="help-block">@Html.ValidationMessage("Identity")</span>
                                                </label>
                                                <label class="block clearfix">
                                                    <span class="block input-icon input-icon-right">
                                                        @Html.Password("Password", string.Empty, new { @class = "form-control", placeholder = @Cherry.Agile.Web.Resource.GetString("Agile_Pwd"), data_val_required = @Cherry.Agile.Web.Resource.GetString("Agile_Pwd_Not_Null"), data_val = "true" })
                                                        <i class="icon-lock"></i>
                                                    </span>
                                                    <span class="help-block">@Html.ValidationMessage("Password")</span>
                                                </label>
                                                <label class="block clearfix">
                                                    @Html.TextBox("verifycode", "", new { style = "width:80px;", placeholder = @Cherry.Agile.Web.Resource.GetString("Agile_VerifyCode") })
                                                    <img style="cursor: pointer; vertical-align:middle" src="@Url.Action("VerifyImage", "Auth")" id="VerifyImage" title=@Cherry.Agile.Web.Resource.GetString("Agile_ResetVerifyCode") onclick="javascript:document.getElementById('VerifyImage').src='@Url.Action("VerifyImage", "Auth")?r='+Math.random();return false;">
                                                    <span class="help-block">@Html.ValidationMessage("verifycode") </span>
                                                </label>
                                                <div class="space"></div>

                                                <div class="clearfix">
                                                    <label class="inline">
                                                        @*<input type="checkbox" class="ace" />*@
                                                        @Html.CheckBox("IsRemeberMe", true)
                                                        <span class="lbl"> @Cherry.Agile.Web.Resource.GetString("Agile_RemeberMe")</span>
                                                    </label>

                                                    <button type="submit" class="width-35 pull-right btn btn-sm btn-primary" >
                                                        <i class="icon-key"></i>
                                                        @Cherry.Agile.Web.Resource.GetString("Agile_Login_Content")
                                                    </button>
                                                </div>

                                                <div class="space-4"></div>
                                            </fieldset>
                                        }

                                    </div><!-- /widget-main -->
                                    <div class="toolbar clearfix">
                                        <div>
                                            <a href="#" onclick="show_box('forgot-box'); return false;" class="forgot-password-link">
                                                <i class="icon-arrow-left"></i>
                                                @Cherry.Agile.Web.Resource.GetString("Agile_ForgetPassword")
                                            </a>
                                        </div>

                                        <div>
                                            <a href="#" onclick="show_box('signup-box'); return false;" class="user-signup-link">
                                                @Cherry.Agile.Web.Resource.GetString("Agile_Register")
                                                <i class="icon-arrow-right"></i>
                                            </a>
                                        </div>
                                    </div>
                                </div>

                            </div><!-- /login-box -->

                            <div id="forgot-box" class="forgot-box widget-box no-border">
                                <div class="widget-body">
                                    <div class="widget-main">
                                        <h4 class="header red lighter bigger">
                                            <i class="icon-key"></i>
                                            @Cherry.Agile.Web.Resource.GetString("Agile_ResetPassword")
                                        </h4>

                                        <div class="space-6"></div>
                                        <p>
                                            @Cherry.Agile.Web.Resource.GetString("Agile_InputEmailAndReciverInstruction")
                                        </p>

                                        @using (Html.BeginForm("Send", "Auth", FormMethod.Post, new { @id = "forgetForm" }))
                                        { 
                                            <fieldset>
                                                <label class="block clearfix">
                                                    <span class="block input-icon input-icon-right">
                                                        @*<input type="email" class="form-control" placeholder="Email" />*@
                                                        @Html.Password("Email", string.Empty, new { @class = "form-control", placeholder = @Cherry.Agile.Web.Resource.GetString("Agile_InvalidEmailFormate"), data_val_required = @Cherry.Agile.Web.Resource.GetString("Agile_Pwd_Not_Null"), data_val = "true" })
                                                        <i class="icon-envelope"></i>
                                                    </span>
                                                </label>

                                                <div class="clearfix">
                                                    <button type="submit" class="width-35 pull-right btn btn-sm btn-danger">
                                                        <i class="icon-lightbulb"></i>
                                                        @Cherry.Agile.Web.Resource.GetString("Agile_Send")
                                                    </button>
                                                </div>
                                            </fieldset>
                                        }
                                    </div><!-- /widget-main -->

                                    <div class="toolbar center">
                                        <a href="#" onclick="show_box('login-box'); return false;" class="back-to-login-link">
                                            @Cherry.Agile.Web.Resource.GetString("Agile_Return")
                                            <i class="icon-arrow-right"></i>
                                        </a>
                                    </div>
                                </div><!-- /widget-body -->
                            </div><!-- /forgot-box -->

                            <div id="signup-box" class="signup-box widget-box no-border">
                                <div class="widget-body">
                                    <div class="widget-main">
                                        <h4 class="header green lighter bigger">
                                            <i class="icon-group blue"></i>
                                            @Cherry.Agile.Web.Resource.GetString("Agile_Register")
                                        </h4>

                                        <div class="space-6"></div>
                                        <p> @Cherry.Agile.Web.Resource.GetStringColon("Agile_Input_Register")  </p>

                                        @using (Html.BeginForm("Register", "Auth", FormMethod.Post, new  { @id="registerForm" }))
                                        { 
                                            <fieldset>
                                                <label class="block clearfix">
                                                    <span class="block input-icon input-icon-right">
                                                        @Html.Password("Email", string.Empty, new { @class = "form-control", placeholder = @Cherry.Agile.Web.Resource.GetString("Agile_InvalidEmailFormate"), data_val_required = @Cherry.Agile.Web.Resource.GetString("Agile_Pwd_Not_Null"), data_val = "true" })
                                                        <i class="icon-envelope"></i>
                                                    </span>
                                                </label>

                                                <label class="block clearfix">
                                                    <span class="block input-icon input-icon-right">
                                                       @Html.TextBox("Identity", string.Empty, new { @class = "form-control", placeholder = @Cherry.Agile.Web.Resource.GetString("Agile_AccountName"), data_val_required = @Cherry.Agile.Web.Resource.GetString("Agile_Account_NOT_NULL"), data_val = "true" })
                                                        <i class="icon-user"></i>
                                                    </span>
                                                </label>

                                                <label class="block clearfix">
                                                    <span class="block input-icon input-icon-right">
                                                        @Html.Password("Password", string.Empty, new { @class = "form-control", placeholder = @Cherry.Agile.Web.Resource.GetString("Agile_Pwd"), data_val_required = @Cherry.Agile.Web.Resource.GetString("Agile_Pwd_Not_Null"), data_val = "true" })
                                                        <i class="icon-lock"></i>
                                                    </span>
                                                </label>

                                                <label class="block clearfix">
                                                    <span class="block input-icon input-icon-right">
                                                        @Html.Password("Password", string.Empty, new { @class = "form-control", placeholder = @Cherry.Agile.Web.Resource.GetString("Agile_ConfirmPassword"), data_val_required = @Cherry.Agile.Web.Resource.GetString("Agile_Pwd_Not_Null"), data_val = "true" })
                                                        @*<input type="password" class="form-control" placeholder="Repeat password" />*@
                                                        <i class="icon-retweet"></i>
                                                    </span>
                                                </label>

                                                <label class="block">
                                                    <input type="checkbox" class="ace" id="IsReadUserAree" />
                                                    <span class="lbl">
                                                        @Cherry.Agile.Web.Resource.GetString("Agile_Accept")
                                                        <a href="#">@Cherry.Agile.Web.Resource.GetString("Agile_User_Agree")</a>
                                                    </span>
                                                </label>

                                                <div class="space-24"></div>

                                                <div class="clearfix">
                                                    <button type="reset" class="width-30 pull-left btn btn-sm">
                                                        <i class="icon-refresh"></i>
                                                        @Cherry.Agile.Web.Resource.GetString("Agile_Reset")
                                                    </button>
                                                    <button type="submit" class="width-65 pull-right btn btn-sm btn-success">
                                                        @Cherry.Agile.Web.Resource.GetString("Agile_Register")
                                                        <i class="icon-arrow-right icon-on-right"></i>
                                                    </button>
                                                </div>
                                            </fieldset>
                                        }
                                    </div>

                                    <div class="toolbar center">
                                        <a href="#" onclick="show_box('login-box'); return false;" class="back-to-login-link">
                                            <i class="icon-arrow-left"></i>
                                            @Cherry.Agile.Web.Resource.GetString("Agile_Return")
                                        </a>
                                    </div>
                                </div><!-- /widget-body -->
                            </div><!-- /signup-box -->
                        </div><!-- /position-relative -->
                    </div>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div>
     </div><!-- /.main-container -->
    <!-- END LOGIN -->
    <!-- BEGIN COPYRIGHT -->
    <!-- END COPYRIGHT -->
    <!-- BEGIN JAVASCRIPTS -->
    <!--[if !IE]> -->

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js" type="text/javascript"></script>

    <!-- <![endif]-->
    <!--[if IE]>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"  type="text/javascript"></script>
    <![endif]-->
    <!--[if !IE]> -->
    <script type="text/javascript">
        window.jQuery || document.write("<script src='@Url.StaticFile("/Scripts/jquery-2.0.3.min.js")' type='text/javascript' > " + "<" + "/script>")
    </script>
    <!-- <![endif]-->
    <!--[if IE]>
        <script type="text/javascript">
            window.jQuery || document.write("<script src='@Url.StaticFile("/Scripts/jquery-1.10.2.min.js")' type='text/javascript' > " + "<"+ "/script>")
        </script>
    <![endif]-->

 <script type="text/javascript">
        if ("ontouchend" in document) document.write("<script src='@Url.StaticFile("/Scripts/jquery.mobile.custom.min.js")        '>" + "<" + "script>");
    </script>
    <script src="@Url.StaticFile("/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.StaticFile("/assets/js/common.js")" type="text/javascript"></script>
    <script src="@Url.StaticFile(string.Format("/assets/js/resouces-{0}.js", System.Threading.Thread.CurrentThread.CurrentUICulture.Name))" type="text/javascript"></script>

    <script src="@Url.StaticFile(string.Format("/assets/js/app-{0}.js", System.Threading.Thread.CurrentThread.CurrentUICulture.Name))"></script>
    <script>
    function show_box(id) {
        jQuery('.widget-box.visible').removeClass('visible');
        jQuery('#' + id).addClass('visible');
    }
    jQuery(document).ready(function () {
        App.initLogin();
    })
</script>
    <div style="display:none">
    <script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div>
    <!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>
